
import request from '@shared/apis/request';
import * as apis from '@shared/apis';

/**
 * 获取客户详情
 * @param id 客户ID
 * @returns 客户详情
 */
export async function get(id: string): Promise<apis.customers.ICustomer> {
    const url = `/customers/detail/${id}`;
    const res = await request.get<apis.customers.ICustomer>(url);
    return res.data;
}